import Vue from 'vue'
import App from './App'

// 全局挂载发
import http from './utils/request'
Vue.prototype.$http = http

// 全局挂载提示
import { showMessage } from './utils/showmessage'
Vue.prototype.$msg = showMessage

// 全局过滤器
Vue.filter('formatPrice', (value) => {
  return Number(value).toFixed(2)
})

// 全局注册组件
import MySearch from '@/components/my-search'
Vue.component('MySearch', MySearch)

import store from './store'

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App,
  store,
})
app.$mount()
